home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Clipping embedded frames
- Sent: 3/8/96 9:35 AM
- Received: 3/8/96 9:55 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Our part supports embedding of other parts. However when our part's draw
- >method is called, the embedded frame is not clipped from our facet. Is it
- >our parts responsibility to clip the embedded part out of our facet each
- >time the draw method is called? If not what is the correct way to manage
- >this?
- >
- >Regards,
- >Karl Jepsen
-
- Yes, your part has to maintain its embedded frames (facets in fact) clip
- shape. ODF provides a help class called FW_CFacetClipper. The default
- implementation works fine if your content is only composed of embedded
- frames (no intrinsic content) like ODFEmbed of ODFTable. If you have
- content other than embedded frames (like ODFDraw) you need to subclass
- FW_CFacetClipper because ODF doesn't know anything about your content.
- The best way to understand how it works is to look at ODFDraw, ODFEmbed
- and ODFTable.
-
- Henri Lamiraux
- ODF Team
-